import {createRouter,createWebHashHistory,RouteRecordRaw} from 'vue-router'
import Home from '@/views/MyHome/MyHome.vue'
import Register from '@/views/Register/Register.vue'
import Login from '@/views/Login/Login.vue'
const routes:RouteRecordRaw[] =[
    {
        path:'/home',
        component:Home
    },
    {
        path:'/register',
        component:Register
    },
    {
        path:'/login',
        component:Login
    },
    {
        path: '/',
        redirect: '/home'
    }
]
const router = createRouter({
    routes,
    history:createWebHashHistory()
})
export default router
